<?php echo $this->paginaTitulo($this->subtitle);?>

<?php echo $this->render('noticias/_opcion_agregar.phtml'); ?><br/>

<table>
	<tr>
		<th><a href="<?php echo $this->baseUrl; ?>/admin/noticias/index/orden/id/asc/<?php echo !$this->orden_asc;?>">Id</a></th>
		<th><a href="<?php echo $this->baseUrl; ?>/admin/noticias/index/orden/titulo/asc/<?php echo !$this->orden_asc;?>">Titulo</a></th>
		<th><a href="<?php echo $this->baseUrl; ?>/admin/noticias/index/orden/fecha/asc/<?php echo !$this->orden_asc;?>">Fecha</a></th>
		<th colspan="3">Acciones</th>
	</tr>

	<? foreach( $this->noticias as $noticia ) : ?>
		<tr>
			<td><?php echo $this->escape($noticia->id);?></td>
			<td><?php echo $this->escape($noticia->titulo);?></td>
			<td nowrap="nowrap"><?php echo $this->escape($noticia->fecha);?></td>
			<td nowrap="nowrap">
				<div class="menu-admin">
					<a href="<?php echo $this->baseUrl; ?>/frontend/noticias/ver/id/<?php echo $noticia->id;?>">Ver</a>
					<a title="Modificar" href="<?php echo $this->baseUrl; ?>/admin/noticias/modificar/id/<?php echo $noticia->id;?>">Mod</a>
					<a title="Eliminar" href="<?php echo $this->baseUrl; ?>/admin/noticias/eliminar/id/<?php echo $noticia->id;?>">Eli</a>
				</div>
			</td>
		</tr>
	<?php endforeach;?>
</table>
<br />
<?php echo $this->render('noticias/_opcion_agregar.phtml'); ?><br/>